//
//  WmcLUTFilter.swift
//  YPWatermarkCamera
//
//  Created by Json on 2023/8/18.
//

import UIKit
import YPGraphicEngine

class WmcLUTFilter: YPGEBaseFilter {
    
    override var gpuFilter: YPGPUImageFilter {
        return _gpuFilter
    }
    
    private let lutImage: UIImage
    
    init(lutImage: UIImage) {
        self.lutImage = lutImage
        super.init()
    }
    
    private lazy var _gpuFilter: PRGPUImageLUTFilter = {
        let filter = PRGPUImageLUTFilter(lutImage: lutImage)
        return filter ?? .init()
    }()
    

}
